package com.by.goods.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.by.goods.dto.CategoryDto;
import com.by.goods.mapper.CategoryMapper;
import com.by.goods.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, CategoryDto> implements CategoryService {

    @Autowired
    CategoryMapper categoryMapper;

    @Override
    public List<CategoryDto> queryByCategory() {
        return categoryMapper.queryByCategoryId(0);
    }

}
